package controllers

import (
	"github.com/gin-gonic/gin"
	"net/http"
)

// BaseController
// @Description: 控制器继承
type BaseController struct {
}

func (base BaseController) Success(c *gin.Context) {
	c.JSON(http.StatusOK, gin.H{
		"success": true,
		"msg":     "操作成功",
	})
}
func (base BaseController) Error(c *gin.Context) {
	c.JSON(http.StatusOK, gin.H{
		"success": false,
		"msg":     "操作失败",
	})
}
